package com.ht.action;

import java.util.List;

import com.ht.entity.Leave;
import com.ht.service.impl.JBPMServiceImpl;
import com.ht.util.BaseAction;
/**
 * 
 * @author ht 
 * 	2010 10 20
 *
 */
public class DetailAction extends BaseAction {
	private String taskId;
	private List<Leave> leaveList;
	private JBPMServiceImpl jbpmServiceImpl = new JBPMServiceImpl();
	public String execute(){
		leaveList=jbpmServiceImpl.getLeaveDetail(taskId);		//根据任务Id从库表获取相应的记录详细情况
		return "detail";
	}
	
	
	public String reRequest(){
		leaveList=jbpmServiceImpl.getLeaveDetail(taskId);
		return "redetail";
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public List<Leave> getLeaveList() {
		return leaveList;
	}

	public void setLeaveList(List<Leave> leaveList) {
		this.leaveList = leaveList;
	}
}
